package com.share.configuration;

import com.share.config.TxMapProperties;
import com.share.template.TxMapTemplate;
import org.springframework.boot.context.properties.EnableConfigurationProperties;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;

@Configuration
@EnableConfigurationProperties({TxMapProperties.class})
public class TxMapAutoConfiguration {
    @Bean
    public TxMapTemplate getTxMapTemplate(TxMapProperties properties){
        return new TxMapTemplate(properties);
    }
}
